package com.next.aappublicapp.util;

import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;

public class AlertDialogUtil {

	public static void showDIalog(Context context,String title, String message){
		AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(context);
 		// set title
		alertDialogBuilder.setTitle(title);
			
		alertDialogBuilder.setMessage(message);
		alertDialogBuilder.setPositiveButton("Ok",new DialogInterface.OnClickListener() {
				public void onClick(DialogInterface dialog,int id) {
					// if this button is clicked, close
					// current activity
					//UserProfileActivity.this.finish();
					dialog.dismiss();
				}
			  });
			// create alert dialog
		AlertDialog alertDialog = alertDialogBuilder.create();
		alertDialog.show();
	}
}
